package protocol;

import java.io.Serializable;
import java.net.InetAddress;

public class Message implements Serializable {


	private static final long serialVersionUID = 123L;
	private String username;
	private InetAddress addressSource;
	

	public Message(String username, InetAddress addressSource){
		this.username = username;
		this.addressSource = addressSource;
	}
	
	public String getUsername(){
		return username;
	}
	
	public InetAddress getSourceAddress(){
		return addressSource;
	}
	
	public String toString(){
		return ("MESSAGE Source: "+username +";");
	}
	
	public void setAddressSource(InetAddress address) {
		this.addressSource = address;
	}
}
